#pragma once
/////////////////////////////////////////////////////////////////////////////////////////////////
class trade_control:public trade_srv_control
{
public:
	DECLARE_COMMAND_TRADEPROC(service_doing_rtlogic)
	DECLARE_COMMAND_TRADEPROC(service_doing_histlogic)
	DECLARE_COMMAND_TRADEPROC(service_db_doing_rtlogic)

	trade_control(void);
	virtual~trade_control(void);

	static const trade_service_command web_command[];
	virtual const trade_service_command*_command(void) const;

	virtual BOOL on_connect(trade_pool_service*pservice);
	virtual long on_idle(long thread_id);
	virtual void on_close(long thread_id);
};
/////////////////////////////////////////////////////////////////////////////////////////////////
